﻿<%@ Page Language="C#" AutoEventWireup="true" Inherits="BaseData_UserCommentManagement" Codebehind="UserCommentManagement.aspx.cs" %>

<%@ Register Assembly="CutPageBar" Namespace="SiteCommon" TagPrefix="cc1" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
    <title>评价管理</title>
</head>
<body>
    <form id="form1" runat="server">
    <div align="Justify">
            <h2>评价管理</h2>
        <asp:ScriptManager ID="ScriptManager1" runat="server">
        </asp:ScriptManager>
        <div style="margin-top:10px; padding-left:10px; text-align:center;"><asp:UpdatePanel  ID="UpdatePanel1" runat="server">
            <ContentTemplate>
                <asp:GridView ID="GridView1" BackColor="White" BorderColor="#999999" BorderStyle=Solid BorderWidth="1px" CellPadding="3" Height="1px" Width="100%" runat="server" AutoGenerateColumns="False" OnRowCancelingEdit="GridView1_RowCancelingEdit"
                    OnRowEditing="GridView1_RowEditing" OnRowUpdating="GridView1_RowUpdating" OnRowDataBound="GridView1_RowDataBound" DataKeyNames="CE_ID">
                    <Columns>
                        <asp:BoundField DataField="CE_USER" HeaderText="会员帐号" ReadOnly="True" SortExpression="CE_User" >
                          <ItemStyle HorizontalAlign="Center" Width="8%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CE_ID" HeaderText="隐藏评价代码" ReadOnly="True" Visible="False">
                          <ItemStyle HorizontalAlign="Center" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CE_CODE" HeaderText="商品代码" ReadOnly="True">
                          <ItemStyle HorizontalAlign="Center" Width="8%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CE_FIELD20" HeaderText="商品名称" ReadOnly="True">
                          <ItemStyle HorizontalAlign="Center" Width="16%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CE_FIELD1" HeaderText="评价标题" ReadOnly="True">
                          <ItemStyle HorizontalAlign="Center" Width="12%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CE_EVAL" HeaderText="评价内容" ReadOnly="True">
                          <ItemStyle HorizontalAlign="Center" Width="20%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:BoundField DataField="CE_LEVEL" HeaderText="评价等级" ReadOnly="True">
                          <ItemStyle HorizontalAlign="Center" Width="8%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="积分奖罚">
                            <ItemTemplate>
                                <asp:TextBox ID="txtJF" runat="server"></asp:TextBox>
                                <asp:RegularExpressionValidator ID="RegularExpressionValidator1" Display="Dynamic" runat="server" ControlToValidate="txtJF"
                                    ErrorMessage="积分奖罚必须是非负浮点数" ValidationExpression="(-?\d+)(\.\d+)?">积分奖罚必须是非负浮点数</asp:RegularExpressionValidator>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="8%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:TemplateField>
                        <asp:BoundField DataField="Show" HeaderText="隐藏状态代码" ReadOnly="True" Visible="False">
                          <ItemStyle HorizontalAlign="Center" Width="8%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:BoundField>
                        <asp:TemplateField HeaderText="状态">
                            <ItemTemplate>
                                <asp:DropDownList ID="DdrpStatus" runat="server">
                                </asp:DropDownList>
                            </ItemTemplate>
                            <ItemStyle HorizontalAlign="Center" Width="8%" BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <FooterStyle BorderStyle="Solid" />
                        </asp:TemplateField>
                        <asp:CommandField ShowEditButton="True" HeaderText="操作">
                            <ItemStyle HorizontalAlign="Center" Width="4%" BorderStyle="Solid" />
                            <FooterStyle BorderStyle="Solid" />
                            <HeaderStyle BorderStyle="Solid" ForeColor="Black" />
                            <ControlStyle Width="50px" />
                        </asp:CommandField>
                    </Columns>
                    <HeaderStyle BackColor="#E7E7E7" ForeColor="DimGray" />
                </asp:GridView>
                <div style="padding-top:10px; float:right; padding-right:40px; width:360px;">
                    <cc1:CutPageBar ID="CutPageBar1" runat="server" BtnOk_Url="../images/btn_ok.gif"
                        NextPage_Url="../images/next_page.gif" NextPageDark_Url="../images/next_page_dark.gif"
                        OnOnPageIndexChanged="CutPageBar1_OnPageIndexChanged" PageSize="6" PrevPage_Url="../images/prev_page.gif"
                        PrevPageDark_Url="../images/prev_page_dark.gif" />
                </div>
            </ContentTemplate>
        </asp:UpdatePanel></div>
        </div>
    </form>
</body>
</html>
